package com.wlc.oop.demo06;

/**
 * @author 王立朝 wanglichao@champion-credit.com
 * @description 教师
 * @date 2021-06-27 18:03
 */
public abstract class Teacher {
    private String name;
    private int age;

    /**
     * 抽象类中的抽象方法没有方法体
     */
    public abstract void he();

    public void say() {
        System.out.println("说话");
    }

    public Teacher() {
        this.name = "张三风";
        this.age = 20;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

}
